<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel='stylesheet' href='css/global.css' type='text/css' />
    <link rel='stylesheet' href='css/forms.css' type='text/css' />
	<title>TP Final: Login</title>
</head>

<body>
    <h1 class='mainHeader'>Ingreso</h1>
		<html:form styleId="login" action="/validateLogin.do" method="post">
			<fieldset>
				<label for='usuario'><span>Usuario:</span>
				<html:text name="loginForm" property="usuario" /></label>
			    <label for='password'><span>Contraseña:</span>
	            <html:password name="loginForm" property="password" /></label>
			</fieldset>
            <div><html:submit>Ingresar</html:submit></div>
		</html:form>
        <logic:present name="LOGIN_ERROR_MESSAGE" scope="request">
	       <h2 class='warningHeader'><bean:write name="LOGIN_ERROR_MESSAGE" /></h2>
        </logic:present>
</body>

</html>